function myInstanceof(left, right) {
    left = left.__proto__
    while (true) {
        if (left === null || left === undefined) {
            return false
        }
        if (right.prototype === left) {
            return true
        }
        left = left.__proto__
    }
}



function myInstanceof(left, right) {
    left = left.__proto__
    while (true) {
        if (left == null || left == undefined) {
            return false
        }
        if (right.prototype === left) {
            left = left.__proto__
        }
    }
}